package com.iqiyi.pps.epg.api.server.iservice;

import com.iqiyi.mams.hedvig.http.mediatype.ExtendedMediaType;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

/**
 * Created by karkarrotxu on 2017/7/31.
 */
@Path("/vod")
@Produces({ExtendedMediaType.APPLICATION_X_THRIFT})
public interface VodApiService {
    @POST
    @Path("/logList")
    @Produces(MediaType.APPLICATION_JSON)
    public String getVodLogList(@FormParam("id") String channelId,
                                @FormParam("pageNo") Integer pageNo,
                                @FormParam("pageSize") Integer pageSize);

    @POST
    @Path("/logList/filter")
    @Produces(MediaType.APPLICATION_JSON)
    public String getVodLogListByFilter(@FormParam("paramsObj") String paramsObj,  @FormParam("pageNo") Integer pageNo,@FormParam("pageSize") Integer pageSize);

    @POST
    @Path("/episodeLogList")
    @Produces(MediaType.APPLICATION_JSON)
    public String getVodEpisodeLogList(@FormParam("paramsObj") String paramsObj, @FormParam("pageNo") Integer pageNo,@FormParam("pageSize") Integer pageSize);

    @POST
    @Path("/saveEpisodeLog")
    @Produces(MediaType.APPLICATION_JSON)
    public String saveEpisodeLog(@FormParam("data") String dataString);

    @POST
    @Path("/saveLog")
    @Produces(MediaType.APPLICATION_JSON)
    public String saveVodLog(@FormParam("data") String dataString);

    @POST
    @Path("/vodRecord/add")
    @Produces(MediaType.APPLICATION_JSON)
    public String addVodRecord(@FormParam("data") String dataString);

    @POST
    @Path("/vodRecord/getList")
    @Produces(MediaType.APPLICATION_JSON)
    public String getVodRecordList(@FormParam("channelId") String channelId,
                                 @FormParam("pageNo") Integer pageNo,
                                 @FormParam("pageSize") Integer pageSize);

    @POST
    @Path("/vodRecord/edit")
    @Produces(MediaType.APPLICATION_JSON)
    public String editVodRecord(@FormParam("data") String dataString);

    @POST
    @Path("/vodRecord/del")
    @Produces(MediaType.APPLICATION_JSON)
    public String delVodRecord(@FormParam("channelId")String channelId,@FormParam("taskId")String taskId);

    @POST
    @Path("/ad/add")
    @Produces(MediaType.APPLICATION_JSON)
    public String addVodad(@FormParam("data") String dataString);

    @POST
    @Path("/ad/getList")
    @Produces(MediaType.APPLICATION_JSON)
    public String getVodadList(@FormParam("paramsObj") String paramsObj,
                               @FormParam("pageNo") Integer pageNo,
                               @FormParam("pageSize") Integer pageSize);

    @POST
    @Path("/ad/del")
    @Produces(MediaType.APPLICATION_JSON)
    public String delVodad(@FormParam("id") String id);
//    @POST
//    @Path("/redodot")
//    @Produces(MediaType.APPLICATION_JSON)
//    public String redodot(@FormParam("data") String dataString);

}
